CC	=	g++

CFLAGS	= -Wall -O0 -g

INCLUDE_PATH =	-I/usr/include/nite/	\
		-I/usr/include/ni/	\
		-I../Apps/

BUILDDIR = ../build/

DEFINE	= -DDEBUG

TOBUILD = graphicEngine.o glutEngine.o

DEPEND = $(addprefix $(BUILDDIR),$(TOBUILD))

all: $(DEPEND) make

make:UI
	$(MAKE) --directory=$^

$(BUILDDIR)%.o:%.cpp
	$(CC) -o $@ -c $< $(DEFINE) $(INCLUDE_PATH) $(CFLAGS)

clean:
	rm -rf $(DEPEND)